﻿using Jayden.Dll.Web.HtmlControls;

namespace Jayden.Dll.Web.Controls.Google
{
	public class YoutubeVideoIFrame : IFrame
	{

		public string ServerVideo { get { return GetServerAttribute("video"); } set { SetServerAttribute("video", value); } }

		public override void Load(System.Xml.XmlNode node, HtmlControlLoader loader)
		{
			base.Load(node, loader);

			Src = string.Format("http://www.youtube.com/embed/{0}?rel=0", ServerVideo);
		}
	}
}
